<?php if (!defined('BASEPATH')) exit('No direct access allowed.');

class Mekey {
	
	private $_CI;
	
	function __construct() {
		$this->_CI = & get_instance();
	}
	
    function base_encode($str) {
        $src  = array("/","+","=");
        $dist = array("_F","_O","_X");
        $old  = base64_encode($str);
        $new  = str_replace($src,$dist,$old);
        return $new;
	}
 
	function base_decode($str) {
        $src = array("_F","_O","_X");
        $dist  = array("/","+","=");
        $old  = str_replace($src,$dist,$str);
        $new = base64_decode($old);
        return $new;
	}

}